CREATE TABLE [dbo].[tb_AgentesConEstimulo]
(
[idEstimulo] [int] NOT NULL IDENTITY(1, 1),
[Agente] [int] NOT NULL,
[Monto] [decimal] (18, 4) NOT NULL,
[Porcentaje] [decimal] (18, 4) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AgentesConEstimulo] ADD CONSTRAINT [PK_tb_AgentesConEstimulo] PRIMARY KEY NONCLUSTERED  ([idEstimulo]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AgentesConEstimulo] WITH NOCHECK ADD CONSTRAINT [FK_tb_AgentesConEstimulo_tb_Agentes] FOREIGN KEY ([Agente]) REFERENCES [dbo].[tb_Agentes] ([idAgente]) NOT FOR REPLICATION
GO
ALTER TABLE [dbo].[tb_AgentesConEstimulo] NOCHECK CONSTRAINT [FK_tb_AgentesConEstimulo_tb_Agentes]
GO
